package Test;

import java.io.File;

import thread.sleep.filemove.FileCreateThread;
import thread.sleep.filemove.FileMoveThread;

/**
 * 파일이 담길 폴더를 생성하는 작업과 쓰레드를 실행한다.
 */
public class MainThread {
	public static void main(String[] args) {

		File oldDic = new File("c:\\day\\newDir");
		if (!oldDic.exists()) {oldDic.mkdir();}
		else {oldDic.delete();}

		File newDic = new File("c:\\day\\newDir2");
		if (!newDic.exists()) {newDic.mkdir();}
		else {newDic.delete();}

		new Thread(new FileCreateThread()).start();
		new Thread(new FileMoveThread()).start();
	}
}
